package com.tengchao.books.service;

import java.util.List;

import com.tengchao.books.model.Book;

/**
 * 
 * 
 * @author TENGCHAO.JI
 *
 */
public interface BookService {

	/**
	 * 
	 * @param id
	 * @return
	 */
	public Book getBook(int id);
	
	/**
	 * 
	 * @param book
	 */
	public void createBook(Book book);
	
	
	/**
	 * 
	 * @param id
	 */
	public void deleteBook(int id);
	
	/**
	 * 
	 * @param id
	 * @param book
	 */
	public void updateBook(int id, Book book);
	
	/**
	 * 
	 * @param offset
	 * @param limit
	 * @return
	 */
	public List<Book> getBooks(int offset, int limit);
}
